//
//  ViewController.swift
//  DCCJLogin
//
//  Created by 刘汤圆 on 07/23/2018.
//  Copyright (c) 2018 刘汤圆. All rights reserved.
//

import UIKit
import DCCJLogin
import DCCJConfig
import DCCJNetwork

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let login = DCCJLogin(net: DCCJNetwork())

        let d = [String: String]()
        login.request(with: LoginRequests.send(type: .checkVersion, data: d)).data.observe { (result: Result<DCCJCheckVersionModel>) in
            
        }
        
        login.request(with: LoginRequests.send(type: .getUserAccount, data: d)).data.observe { (result:Result<Data>) in

        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

